#ifndef PSD_EVENT_H
#define PSD_EVENT_H

#include "psd_session.h"
#include "psd_conn.h"

typedef int (*event_handler) (const char *event_id, void *target, const char *description);

int psd_event_init();
int psd_event_register_listener(const char *event_id, event_handler f);
void psd_event(const char *event_id, void *target, const char *description, ...) __attribute__ ((format (printf, 3, 4)));

#endif
